home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2001 November / macformat-109.iso / Demos / Alice Demo / demo / pak0.pk3 / scripts / test.shader < prev    next >
Encoding:
Text File  |  2000-11-20  |  12.2 KB  |  637 lines

  1. textures/test/gldstcol1
  2. //SED: Testing the shader editor.  Frustration runs high!
  3. {
  4.     surfaceparm nolightmap
  5.     surfaceparm trans
  6.     qer_editorimage textures/glass/ptn_grnS.tga
  7.     qer_trans 0.500000
  8.     {
  9.         map textures/glass/ptn_grnS.tga
  10.         blendFunc GL_DST_COLOR GL_ONE
  11.     }
  12. }
  13.  
  14. textures/test/gldstcol2
  15. {
  16.     surfaceparm nolightmap
  17.     surfaceparm trans
  18.     qer_editorimage textures/glass/ptn_grnS.tga
  19.     qer_trans 0.500000
  20.     {
  21.         map textures/glass/ptn_grnS.tga
  22.         blendFunc GL_DST_COLOR GL_ONE_MINUS_SRC_ALPHA
  23.     }
  24. }
  25.  
  26. textures/test/gldstcol3
  27. {
  28.     surfaceparm nolightmap
  29.     surfaceparm trans
  30.     qer_editorimage textures/glass/ptn_grnS.tga
  31.     qer_trans 0.500000
  32.     {
  33.         map textures/glass/ptn_grnS.tga
  34.         blendFunc GL_DST_COLOR GL_ONE_MINUS_SRC_COLOR
  35.     }
  36. }
  37.  
  38. textures/test/gldstcol4
  39. {
  40.     surfaceparm nolightmap
  41.     surfaceparm trans
  42.     qer_editorimage textures/glass/ptn_grnS.tga
  43.     qer_trans 0.500000
  44.     {
  45.         map textures/glass/ptn_grnS.tga
  46.         blendFunc GL_DST_COLOR GL_SRC_ALPHA
  47.     }
  48. }
  49.  
  50. textures/test/gldstcol5
  51. {
  52.     surfaceparm nolightmap
  53.     surfaceparm trans
  54.     qer_editorimage textures/glass/ptn_grnS.tga
  55.     qer_trans 0.500000
  56.     {
  57.         map textures/glass/ptn_grnS.tga
  58.         blendFunc GL_DST_COLOR GL_SRC_COLOR
  59.     }
  60. }
  61.  
  62. textures/test/gldstcol6
  63. {
  64.     surfaceparm nolightmap
  65.     surfaceparm trans
  66.     qer_editorimage textures/glass/ptn_grnS.tga
  67.     qer_trans 0.500000
  68.     {
  69.         map textures/glass/ptn_grnS.tga
  70.         blendFunc GL_DST_COLOR GL_ZERO
  71.     }
  72. }
  73.  
  74. textures/test/glone1
  75. {
  76.     surfaceparm nolightmap
  77.     surfaceparm trans
  78.     qer_editorimage textures/glass/ham_yelS.tga
  79.     qer_trans 0.500000
  80.     {
  81.         map textures/glass/ham_yelS.tga
  82.         blendFunc GL_ONE GL_ONE
  83.     }
  84. }
  85.  
  86. textures/test/glone2
  87. {
  88.     surfaceparm nolightmap
  89.     surfaceparm trans
  90.     qer_editorimage textures/glass/ham_yelS.tga
  91.     qer_trans 0.500000
  92.     {
  93.         map textures/glass/ham_yelS.tga
  94.         blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
  95.     }
  96. }
  97.  
  98. textures/test/glone3
  99. {
  100.     surfaceparm nolightmap
  101.     surfaceparm trans
  102.     qer_editorimage textures/glass/ham_yelS.tga
  103.     qer_trans 0.500000
  104.     {
  105.         map textures/glass/ham_yelS.tga
  106.         blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
  107.     }
  108. }
  109.  
  110. textures/test/glone4
  111. {
  112.     surfaceparm nolightmap
  113.     surfaceparm trans
  114.     qer_editorimage textures/glass/ham_yelS.tga
  115.     qer_trans 0.500000
  116.     {
  117.         map textures/glass/ham_yelS.tga
  118.         blendFunc GL_ONE GL_SRC_ALPHA
  119.     }
  120. }
  121.  
  122. textures/test/glone5
  123. {
  124.     surfaceparm nolightmap
  125.     surfaceparm trans
  126.     qer_editorimage textures/glass/ham_yelS.tga
  127.     qer_trans 0.500000
  128.     {
  129.         map textures/glass/ham_yelS.tga
  130.         blendFunc GL_ONE GL_SRC_COLOR
  131.     }
  132. }
  133.  
  134. textures/test/glone6
  135. {
  136.     surfaceparm nolightmap
  137.     surfaceparm trans
  138.     qer_editorimage textures/glass/ham_yelS.tga
  139.     qer_trans 0.500000
  140.     {
  141.         map textures/glass/ham_yelS.tga
  142.         blendFunc GL_ONE GL_ZERO
  143.     }
  144. }
  145.  
  146. textures/test/gl1-scralph1
  147. {
  148.     surfaceparm nolightmap
  149.     surfaceparm trans
  150.     qer_editorimage textures/glass/saf_grnM.tga
  151.     qer_trans 0.500000
  152.     {
  153.         map textures/glass/saf_grnM.tga
  154.         blendFunc GL_ONE_MINUS_SRC_ALPHA GL_ONE
  155.     }
  156. }
  157.  
  158. textures/test/gl1-dstclr2
  159. {
  160.     surfaceparm nolightmap
  161.     surfaceparm trans
  162.     qer_editorimage textures/glass/camstained.tga
  163.     qer_trans 0.500000
  164.     {
  165.         map textures/glass/camstained.tga
  166.         blendFunc GL_ONE_MINUS_DST_COLOR GL_ONE_MINUS_SRC_ALPHA
  167.     }
  168. }
  169.  
  170. textures/test/gl1-dstclr3
  171. {
  172.     surfaceparm nolightmap
  173.     surfaceparm trans
  174.     qer_editorimage textures/glass/camstained.tga
  175.     qer_trans 0.500000
  176.     {
  177.         map textures/glass/camstained.tga
  178.         blendFunc GL_ONE_MINUS_DST_COLOR GL_ONE_MINUS_SRC_COLOR
  179.     }
  180. }
  181.  
  182. textures/test/gl1-dstclr4
  183. {
  184.     surfaceparm nolightmap
  185.     surfaceparm trans
  186.     qer_editorimage textures/glass/camstained.tga
  187.     qer_trans 0.500000
  188.     {
  189.         map textures/glass/camstained.tga
  190.         blendFunc GL_ONE_MINUS_DST_COLOR GL_SRC_ALPHA
  191.     }
  192. }
  193.  
  194. textures/test/gl1-dstclr5
  195. {
  196.     surfaceparm nolightmap
  197.     surfaceparm trans
  198.     qer_editorimage textures/glass/camstained.tga
  199.     qer_trans 0.500000
  200.     {
  201.         map textures/glass/camstained.tga
  202.         blendFunc GL_ONE_MINUS_DST_COLOR GL_SRC_COLOR
  203.     }
  204. }
  205.  
  206. textures/test/gl1-dstclr6
  207. {
  208.     surfaceparm nolightmap
  209.     surfaceparm trans
  210.     qer_editorimage textures/glass/camstained.tga
  211.     qer_trans 0.500000
  212.     {
  213.         map textures/glass/camstained.tga
  214.         blendFunc GL_ONE_MINUS_DST_COLOR GL_ONE
  215.     }
  216. }
  217.  
  218. textures/test/gl1-scralph2
  219. {
  220.     surfaceparm nolightmap
  221.     surfaceparm trans
  222.     qer_editorimage textures/glass/saf_grnM.tga
  223.     qer_trans 0.500000
  224.     {
  225.         map textures/glass/saf_grnM.tga
  226.         blendFunc GL_ONE_MINUS_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  227.     }
  228. }
  229.  
  230. textures/test/gl1-scralph3
  231. {
  232.     surfaceparm nolightmap
  233.     surfaceparm trans
  234.     qer_editorimage textures/glass/saf_grnM.tga
  235.     qer_trans 0.500000
  236.     {
  237.         map textures/glass/saf_grnM.tga
  238.         blendFunc GL_ONE_MINUS_SRC_ALPHA GL_ONE_MINUS_SRC_COLOR
  239.     }
  240. }
  241.  
  242. textures/test/gl1-scralph4
  243. {
  244.     surfaceparm nolightmap
  245.     surfaceparm trans
  246.     qer_editorimage textures/glass/saf_grnM.tga
  247.     qer_trans 0.500000
  248.     {
  249.         map textures/glass/saf_grnM.tga
  250.         blendFunc GL_ONE_MINUS_SRC_ALPHA GL_SRC_ALPHA
  251.     }
  252. }
  253.  
  254. textures/test/gl1-scralph5
  255. {
  256.     surfaceparm nolightmap
  257.     surfaceparm trans
  258.     qer_editorimage textures/glass/saf_grnM.tga
  259.     qer_trans 0.500000
  260.     {
  261.         map textures/glass/saf_grnM.tga
  262.         blendFunc GL_ONE_MINUS_SRC_ALPHA GL_SRC_COLOR
  263.     }
  264. }
  265.  
  266. textures/test/gl1-scralph6
  267. {
  268.     surfaceparm nolightmap
  269.     surfaceparm trans
  270.     qer_editorimage textures/glass/saf_grnM.tga
  271.     qer_trans 0.500000
  272.     {
  273.         map textures/glass/saf_grnM.tga
  274.         blendFunc GL_ONE_MINUS_SRC_ALPHA GL_ZERO
  275.     }
  276. }
  277.  
  278. textures/test/glsrcalph1
  279. {
  280.     surfaceparm nolightmap
  281.     surfaceparm trans
  282.     qer_editorimage textures/natural/rok_gryflr01.tga
  283.     qer_trans 0.500000
  284.     {
  285.         map textures/natural/rok_gryflr01.tga
  286.         blendFunc GL_SRC_ALPHA GL_ONE
  287.     }
  288. }
  289.  
  290. textures/test/glsrcalph2
  291. {
  292.     surfaceparm nolightmap
  293.     surfaceparm trans
  294.     qer_editorimage textures/natural/rok_gryflr01.tga
  295.     qer_trans 0.500000
  296.     {
  297.         map textures/natural/rok_gryflr01.tga
  298.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  299.     }
  300. }
  301.  
  302. textures/test/glsrcalph3
  303. {
  304.     surfaceparm nolightmap
  305.     surfaceparm trans
  306.     qer_editorimage textures/natural/rok_gryflr01.tga
  307.     qer_trans 0.500000
  308.     {
  309.         map textures/natural/rok_gryflr01.tga
  310.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_COLOR
  311.     }
  312. }
  313.  
  314. textures/test/glsrcalph4
  315. {
  316.     surfaceparm nolightmap
  317.     surfaceparm trans
  318.     qer_editorimage textures/natural/rok_gryflr01.tga
  319.     qer_trans 0.500000
  320.     {
  321.         map textures/natural/rok_gryflr01.tga
  322.         blendFunc GL_SRC_ALPHA GL_SRC_ALPHA
  323.     }
  324. }
  325.  
  326. textures/test/glsrcalph5
  327. {
  328.     surfaceparm nolightmap
  329.     surfaceparm trans
  330.     qer_editorimage textures/natural/rok_gryflr01.tga
  331.     qer_trans 0.500000
  332.     {
  333.         map textures/natural/rok_gryflr01.tga
  334.         blendFunc GL_SRC_ALPHA GL_SRC_COLOR
  335.     }
  336. }
  337.  
  338. textures/test/glsrcalph6
  339. {
  340.     surfaceparm nolightmap
  341.     surfaceparm trans
  342.     qer_editorimage textures/natural/rok_gryflr01.tga
  343.     qer_trans 0.500000
  344.     {
  345.         map textures/natural/rok_gryflr01.tga
  346.         blendFunc GL_SRC_ALPHA GL_ZERO
  347.     }
  348. }
  349.  
  350. textures/test/glzero1
  351. {
  352.     surfaceparm nolightmap
  353.     surfaceparm trans
  354.     qer_editorimage textures/natural/rok_gryflr03.tga
  355.     qer_trans 0.500000
  356.     {
  357.         map textures/natural/rok_gryflr03.tga
  358.         blendFunc GL_ZERO GL_ONE
  359.     }
  360. }
  361.  
  362. textures/test/glzero2
  363. {
  364.     surfaceparm nolightmap
  365.     surfaceparm trans
  366.     qer_editorimage textures/natural/rok_gryflr03.tga
  367.     qer_trans 0.500000
  368.     {
  369.         map textures/natural/rok_gryflr03.tga
  370.         blendFunc GL_ZERO GL_ONE_MINUS_SRC_ALPHA
  371.     }
  372. }
  373.  
  374. textures/test/glzero3
  375. {
  376.     surfaceparm nolightmap
  377.     surfaceparm trans
  378.     qer_editorimage textures/natural/rok_gryflr03.tga
  379.     qer_trans 0.500000
  380.     {
  381.         map textures/natural/rok_gryflr03.tga
  382.         blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
  383.     }
  384. }
  385.  
  386. textures/test/glzero4
  387. {
  388.     surfaceparm nolightmap
  389.     surfaceparm trans
  390.     qer_editorimage textures/natural/rok_gryflr03.tga
  391.     qer_trans 0.500000
  392.     {
  393.         map textures/natural/rok_gryflr03.tga
  394.         blendFunc GL_ZERO GL_SRC_ALPHA
  395.     }
  396. }
  397.  
  398. textures/test/glzero5
  399. {
  400.     surfaceparm nolightmap
  401.     surfaceparm trans
  402.     qer_editorimage textures/natural/rok_gryflr03.tga
  403.     qer_trans 0.500000
  404.     {
  405.         map textures/natural/rok_gryflr03.tga
  406.         blendFunc GL_ZERO GL_SRC_COLOR
  407.     }
  408. }
  409.  
  410. textures/test/glzero6
  411. {
  412.     surfaceparm nolightmap
  413.     surfaceparm trans
  414.     qer_editorimage textures/natural/rok_gryflr03.tga
  415.     qer_trans 0.500000
  416.     {
  417.         map textures/natural/rok_gryflr03.tga
  418.     }
  419. }
  420.  
  421. textures/test/gl1-dstclr1
  422. {
  423.     surfaceparm nolightmap
  424.     surfaceparm trans
  425.     qer_editorimage textures/glass/camstained.tga
  426.     qer_trans 0.500000
  427.     {
  428.         map textures/glass/camstained.tga
  429.         blendFunc GL_ONE_MINUS_DST_COLOR GL_ONE
  430.     }
  431. }
  432.  
  433. textures/test/glass01
  434. {
  435.     surfaceparm trans
  436.     qer_editorimage textures/glass/ham_yelS.tga
  437.     qer_trans 0.500000
  438.     {
  439.         map $lightmap
  440.         blendFunc GL_ONE GL_ONE
  441.         rgbGen identity
  442.     }
  443.     {
  444.         map textures/glass/ham_yelS.tga
  445.         blendFunc GL_DST_COLOR GL_SRC_ALPHA
  446.         alphaGen lightingSpecular
  447.         rgbGen identity
  448.     }
  449.     {
  450.         map textures/flat/cla_red.tga
  451.         blendFunc GL_ONE GL_ONE
  452.         rgbGen identity
  453.         tcGen environment
  454.     }
  455.     {
  456.         map textures/glass/ham_yelS.tga
  457.         blendFunc GL_DST_COLOR GL_ZERO
  458.         rgbGen identity
  459.     }
  460. }
  461.  
  462. textures/test/jimlava
  463. {
  464.     cull none
  465.     deformVertexes wave 100 sin 3.000000 2.000000 0.100000 0.100000
  466.     tessSize 128
  467.     surfaceparm nolightmap
  468.     surfaceparm noimpact
  469.     surfaceparm trans
  470.     qer_editorimage textures/common/trigger.tga
  471.     qer_trans 0.500000
  472.     {
  473.         map textures/common/trigger.tga
  474.         tcMod turb 0.000000 0.200000 0.000000 0.100000
  475.     }
  476. }
  477.  
  478. textures/test/glass02
  479. {
  480.     surfaceparm trans
  481.     qer_editorimage textures/glass/ham_yelS.tga
  482.     qer_trans 0.500000
  483.     {
  484.         map $lightmap
  485.         blendFunc GL_ONE GL_SRC_ALPHA
  486.         rgbGen identity
  487.     }
  488.     {
  489.         map textures/glass/ham_yelS.tga
  490.         blendFunc GL_DST_COLOR GL_SRC_ALPHA
  491.         alphaGen lightingSpecular
  492.         rgbGen identity
  493.     }
  494.     {
  495.         map textures/flat/cla_red.tga
  496.         blendFunc GL_ONE GL_ONE
  497.         rgbGen identity
  498.         tcGen environment
  499.     }
  500.     {
  501.         map textures/glass/ham_yelS.tga
  502.         blendFunc GL_DST_COLOR GL_ZERO
  503.         rgbGen identity
  504.     }
  505. }
  506.  
  507. textures/test/glass03
  508. {
  509.     surfaceparm trans
  510.     qer_editorimage textures/glass/ham_yelS.tga
  511.     qer_trans 0.500000
  512.     {
  513.         map $lightmap
  514.         blendFunc GL_DST_COLOR GL_ONE
  515.         rgbGen identity
  516.     }
  517.     {
  518.         map textures/glass/ham_yelS.tga
  519.         blendFunc GL_DST_COLOR GL_SRC_ALPHA
  520.         alphaGen lightingSpecular
  521.         rgbGen identity
  522.     }
  523.     {
  524.         map textures/flat/cla_red.tga
  525.         blendFunc GL_ONE GL_ONE
  526.         rgbGen identity
  527.         tcGen environment
  528.     }
  529.     {
  530.         map textures/glass/ham_yelS.tga
  531.         blendFunc GL_DST_COLOR GL_ZERO
  532.         rgbGen identity
  533.     }
  534. }
  535.  
  536. textures/test/floor01
  537. {
  538.     surfaceparm trans
  539.     qer_editorimage textures/floor/til_chxtan.tga
  540.     qer_trans 0.500000
  541.     {
  542.         map $lightmap
  543.         blendFunc GL_DST_COLOR GL_ONE
  544.         rgbGen identity
  545.     }
  546.     {
  547.         map textures/floor/til_chxtan.tga
  548.         blendFunc GL_DST_COLOR GL_ZERO
  549.         rgbGen identity
  550.     }
  551. }
  552.  
  553. textures/test/light01
  554. {
  555.     cull front
  556.     surfaceparm nolightmap
  557.     surfaceparm nonsolid
  558.     surfaceparm trans
  559.     qer_editorimage textures/effects/sunlight02.tga
  560.     qer_trans 0.500000
  561.     {
  562.         map textures/effects/sunlight02.tga
  563.         blendFunc GL_ONE GL_ONE
  564.     }
  565. }
  566.  
  567. // DHM - playing with the bulge
  568. textures/test/dtest1
  569. {
  570.     qer_editorimage textures/effects/alicewall_01.tga
  571.     
  572.     deformVertexes bulge 2 12 1
  573.     //deformVertexes move 1 0 1 sin 0 8 0 0.5
  574.     //deformVertexes wave 64 sin 0 4 0 0.5
  575.     //deformVertexes normal 0.5 8
  576.  
  577.     {
  578.         map $lightmap
  579.         rgbGen identity
  580.     }
  581.     {
  582.           map textures/effects/alicewall_01.tga
  583.         blendFunc GL_DST_COLOR GL_ZERO
  584.         rgbGen identity
  585.     }
  586.     //{
  587.     //    map textures/effects/reflights.tga
  588.     //    blendFunc GL_DST_COLOR GL_ONE
  589.     //    rgbGen identity
  590.     //    tcgen environment
  591.     //    tcMod scale 2 2
  592.     //}
  593. }
  594.  
  595. // DHM - test fire
  596. textures/test/dfire1
  597. {
  598.     deformVertexes autoSprite
  599.     surfaceparm trans
  600.     surfaceparm nomarks
  601.     surfaceparm nonsolid
  602.     surfaceparm nolightmap
  603.     cull none
  604.     q3map_surfacelight 3000
  605.     qer_editorimage textures/test/flame_test.tga
  606.     
  607.     {
  608.         map textures/test/flame_test2.tga
  609.         //blendFunc GL_ONE GL_ONE
  610.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  611.         alphaFunc GT0
  612.         //alphatest greater 0.3
  613.         depthWrite
  614.         rgbGen identity
  615.         tcMod scroll 0 1.8
  616.         //tcMod turb 0 0.02 0 2.2
  617.     }
  618.     {
  619.         map textures/test/flame_test2.tga
  620.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  621.         //blendFunc GL_DST_COLOR GL_ONE
  622.         //blendFunc GL_ONE_MINUS_SRC_ALPHA GL_ONE
  623.         //depthFunc equal
  624.         alphaFunc GT0
  625.         depthWrite
  626.         rgbGen identity
  627.         tcMod scroll 0 3.4
  628.     }    
  629.     {
  630.         map textures/test/flame_test.tga
  631.         blendFunc GL_DST_ALPHA GL_ONE
  632.         //blendFunc GL_ONE_MINUS_SRC_ALPHA GL_ONE
  633.         //blendFunc GL_ONE GL_ONE
  634.         depthFunc equal
  635.         rgbGen identity
  636.     }
  637. }